package cn.xjy.ddlc.loader;

import cn.xjy.ddlc.model.Database;

import java.sql.Connection;
import java.util.List;

public interface StructureLoader {
    
    /**
     * 获取数据库结构
     */
    Database loadDatabaseStructure(Connection connection, String databaseName) throws Exception;
    
    
    /**
     * 通过连接获取数据库名称
     */
    List<String> loadDatabaseNames(Connection connection) throws Exception;
    
}
